package xyz.xiezc.mzix.download.rpc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import xyz.xiezc.mzix.common.api.Download;
import xyz.xiezc.mzix.common.dto.PageDTO;
import xyz.xiezc.mzix.download.service.DownloadService;

import java.io.IOException;
@RestController
public class DownloadRpc  implements Download {

  @Autowired
  DownloadService downloadService;

  @Override
  public void download(PageDTO pageDTO)  {
    downloadService.download(pageDTO);
  }
}
